package com.example.fengyungo.domain;

import androidx.annotation.NonNull;

/**
 * 聊天界面用到
 *
 * @author XLR
 */
public class ChatMessage {
    /**
     * 消息来自接收者
     */
    public static final int FROM_RECEIVER = 0;
    /**
     * 消息来自发送者
     */
    public static final int FROM_SENDER = 1;
    /**
     * 消息来源
     */
    int messageType;
    /**
     * 消息内容
     */
    String content;
    /**
     * 用户id-接受者id
     */
    String userId;

    public int getMessageType() {
        return messageType;
    }

    public void setMessageType(int messageType) {
        this.messageType = messageType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @NonNull
    @Override
    public String toString() {
        return "ChatMessage{" +
                "messageType=" + messageType +
                ", content='" + content + '\'' +
                ", userId='" + userId + '\'' +
                '}';
    }
}
